package com.qdlc.p2p.manage.common.menu;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Properties;

/**
 * 趣享专区信息
 * Created by D on 2016/2/1.
 */
public class Prefecture {

    public static Map<Integer,Object> prefecture=new HashMap<Integer, Object>();

    static  {
        Properties pro = new Properties();
        try {
            InputStream inStr = Prefecture.class.getResourceAsStream("/prefecture.properties");
            pro.load(inStr);
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
        Iterator it=pro.entrySet().iterator();
        while(it.hasNext()){
            Map.Entry entry=(Map.Entry)it.next();
            prefecture.put(Integer.parseInt((String)entry.getKey()), entry.getValue());
        }
    }
}
